import request from '@/utils/request'

// 查询成品库存信息列表
export function listGoods(query) {
  return request({
    url: '/mes/goods/list',
    method: 'get',
    params: query
  })
}

// 查询成品库存信息详细
export function getGoods(inventoryId) {
  return request({
    url: '/mes/goods/' + inventoryId,
    method: 'get'
  })
}

// 新增成品库存信息
export function addGoods(data) {
  return request({
    url: '/mes/goods',
    method: 'post',
    data: data
  })
}

// 修改成品库存信息
export function updateGoods(data) {
  return request({
    url: '/mes/goods',
    method: 'put',
    data: data
  })
}

// 删除成品库存信息
export function delGoods(inventoryId) {
  return request({
    url: '/mes/goods/' + inventoryId,
    method: 'delete'
  })
}
